#include "Conversion.h"
#include "gtest/gtest.h"

using namespace SUNSHINE;


TEST(ValidBin2Dec, Bin2Dec)
{
	string s("10101");
	EXPECT_EQ(21, Conversion::Bin2Dec(s));
//	EXPECT_EQ(0,  Conversion::Bin2Dec(""));
//	EXPECT_EQ(-1, Conversion::Bin2Dec("2"));
}

